package com.nbsaas.boot.merchant.rest.convert;

import com.nbsaas.boot.merchant.data.entity.MerchantCategory;
import com.nbsaas.boot.merchant.api.domain.simple.MerchantCategorySimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商家分类-列表对象转换器
*/

public class MerchantCategorySimpleConvert implements Converter<MerchantCategorySimple, MerchantCategory> {




@Override
public MerchantCategorySimple convert(MerchantCategory source) {
    MerchantCategorySimple result = new MerchantCategorySimple();

                result.setDepositAmount(source.getDepositAmount());
                result.setImage(source.getImage());
                result.setCommissionRate(source.getCommissionRate());
                result.setCode(source.getCode());
                result.setVisible(source.getVisible());
                result.setLevel(source.getLevel());
                result.setIcon(source.getIcon());
                result.setDescription(source.getDescription());
                result.setSort(source.getSort());
                result.setAddDate(source.getAddDate());
                result.setParentId(source.getParentId());
                result.setEnabled(source.getEnabled());
                result.setPath(source.getPath());
                result.setName(source.getName());
                result.setId(source.getId());
                result.setLastDate(source.getLastDate());


    return result;
}

}